export const generalUniqueString = () => {
  return generalRandomStr();
};

export const generalRandomStr = (length = 32) => {
  let text = '';
  const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  for (let i = 0; i < length; i++) {
    text += possible.charAt(Math.floor(Math.random() * possible.length));
  }
  return text;
};

export const generalUid = () => Date.now().toString(36) + Math.random().toString(36).substring(2);
